package uns.fit.gis.mapdrawer;

public class LayerConfig {
	public static final int LAYER_ATM = 2;
	public static final int LAYER_CAFE = 33;
	public static final int LAYER_SCHOOL = 9;
	public static final int LAYER_GASSTATION = 1;
	public static final int LAYER_STORE = 25;
	public static final int LAYER_CONSTRUCTIONSITE = 80;
	public static final int LAYER_OTHER_LOCATION = 50;
	public static boolean showATM = false;
	public static boolean showCafe = false;
	public static boolean showSchool = false;
	public static boolean showStore = false;
	public static boolean showGasStation = false;
	public static boolean showConstructionSite = false;
	public static boolean showOtherLocation = false;
	
	public static boolean isVisible(int type) {
		if(showATM && type == LAYER_ATM)
			return true;
		if(showCafe && type == LAYER_CAFE)
			return true;
		if(showSchool && type == LAYER_SCHOOL)
			return true;
		if(showGasStation && type == LAYER_GASSTATION)
			return true;
		if(showStore && type == LAYER_STORE)
			return true;
		if(showConstructionSite && type == LAYER_CONSTRUCTIONSITE)
			return true;
		if(showOtherLocation && type == LAYER_OTHER_LOCATION)
			return true;
		return false;
	}
	
	public static void setVisible(int type, boolean visible) {
		if(type == LAYER_ATM)
			showATM = visible;
		if(type == LAYER_CAFE)
			showCafe = visible;
		if(type == LAYER_SCHOOL)
			showSchool = visible;
		if(type == LAYER_GASSTATION)
			showGasStation = visible;
		if(type == LAYER_STORE)
			showStore = visible;
		if(type == LAYER_CONSTRUCTIONSITE)
			showConstructionSite = visible;
		if(type == LAYER_OTHER_LOCATION)
			showOtherLocation = visible;
	}
}
